Repository navigation
Add the FOG 1.6 Activity page and the activity.view permission - #210
Merged
Merged
Conversation
Adds GET /activity and POST /api/v1/activity/datatable, a read-only view over the audit trail (1.6 ActivityManagement, ADR 0023 "activity is a view"). A row shows when a write succeeded and named its record, or when the event marks itself renderable (the agent events). Each row carries a plain-words summary built at read time (api/helpers/audit/summary.js). - New permission stock.activity.view (Tom approved 2026-11-17). The key matches no model, so it opens no generic /api/v1/:model route. - 500-row cap and no "All", as the Audit Log page. - The Audit Log and Activity endpoints share the paging, search and order in api/helpers/audit/datatable.js. - Activity sits before Audit Log in the Logging group; the sidebar smoke check now pins the Logging children. Closes #206 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #206. Map: #155.
What
GET /activityandPOST /api/v1/activity/datatable: a read-only Activity page under Logging, as FOG 1.6. It is a view over the audit trail, not a new table.access.*with asubjectType), plus renderable events (agent rows). Denials, failures, sign-ins and sign-outs stay on the Audit Log page.summary, built at read time:Updated host "PC-01",Deleted image (3 records),Agent token, agentenrolltoken "lab": minted, 3 use(s).stock.activity.view(approved by Tom, 2026-11-17). It matches no model, so the generic:modelroutes stay closed (a test pins the 403).api/helpers/audit/datatable.js); its behavior is unchanged.Known gap
Some successful writes record no subject today (role assign and unassign, password and api-token resets, pending approve and delete, image scan and capture, account preferences, wol). They stay on the Audit Log page only. Follow-up on #155.
Tests
npm test: 559 passing.npm run test:uiandnpm run test:ui:prod: all checks pass.test/integration/activity-page.test.js,test/helpers/audit-summary.test.js,tools/smoke/checks/activity.js, and a Logging-children assertion inui16-04-sidebar.js. Each fails without the change (the UI checks were run red with the menu entry removed).Review
Built by an executor (Sonnet). Spec and standards reviews on Opus: three rounds, last verdicts CLEAN and one comment fix (applied).
🤖 Generated with Claude Code